package com.myproject.thread.join;

public class Test6 {

    public static void main(String[] args) {

        //复杂用法
        JoinThread joinThread = new JoinThread();
        joinThread.start();
        AnotherThread anotherThread = new AnotherThread();
        anotherThread.setT(joinThread);
        anotherThread.start();
    }
}
